import request from 'network/index'

//判断当前用户是否点收藏过
export function isCollection(data) {
  return request({
    method:"post",
    url:"/house/collection/judge",
    data
  })
}

//点击收藏
export function toCollection(data){
  return request({
    method:"post",
    url:"/house/collection",
    data
  })
}

//取消收藏
export function cancelCollection(data){
  return request({
    method:"delete",
    url:"/house/collection",
    data
  })
}

//全部收藏
export function allCollection(params){
  return request({
    url:"/collection",
    params
  })
}